# encoding: utf-8

import xadmin
from xadmin import views
from .models import *


#-------------------------------------------------
class wenjuanAdmin(object):
	list_display = ('name','breif','danwei','status','fabu_time','jiezhi_time','create_time','cjUser')
	list_display_links = ('name',)
	reversion_enable = True
	search_fields = ['name',]
	#object_list_template="xadmin/views/rchf_model_room_list.html"

xadmin.site.register(wenjuan,wenjuanAdmin)


#-------------------------------------------------
class timuAdmin(object):
	list_display = ('tigan','shunxu','leixing','wenjuan','xuanxiang01','xuanxiang02','xuanxiang03','xuanxiang04','xuanxiang05','xuanxiang06','xuanxiang07','xuanxiang08')
	list_display_links = ('tigan',)
	reversion_enable = True
	search_fields = ['tigan',]
	#object_list_template="xadmin/views/rchf_model_room_list.html"

xadmin.site.register(timu,timuAdmin)


#-------------------------------------------------
class yuanshiJieguoAdmin(object):
	list_display = ('wjkey','username','ipaddress','wenjuanItem','value','create_time',)
	list_display_links = ('wjkey',)
	reversion_enable = True
	search_fields = ['ipaddress','wenjuanItem','wjkey']
	#object_list_template="xadmin/views/rchf_model_room_list.html"

xadmin.site.register(yuanshiJieguo,yuanshiJieguoAdmin)


#-------------------------------------------------
class chafenJieguoAdmin(object):
	list_display = ('wjkey','username','ipaddress','wenjuanItemID','timuItemID','shunxuID','value','create_time',)
	list_display_links = ('wjkey',)
	reversion_enable = True
	search_fields = ['ipaddress','wenjuanItem','wjkey']
	#object_list_template="xadmin/views/rchf_model_room_list.html"

xadmin.site.register(chafenJieguo,chafenJieguoAdmin)

